﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web;

namespace MyFileView.Shard.Model
{
    public class PreviewFileRequestModel
    {
        private string _value;
        public string FileName {
            get { return _value; }
            set {
                 var  result=Convert.FromBase64String(value);
                 _value= HttpUtility.UrlDecode(Encoding.UTF8.GetString(result));
            } 
        }

        public string FileSuffix { get { return FileName.Substring(FileName.LastIndexOf('.') + 1); } }
   


    }
}
